<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<a th:href="@{/users/add}">添加</a>
<table>
    <tr>
        <td>ID</td>
        <td>ACCOUNT</td>
        <td>REALNAME</td>
        <td>BIRTHDAY</td>
        <td>OPT</td>
    </tr>
    <tr th:each="item:${userList}">
        <td th:text="${item.id}">ID</td>
        <td th:text="${item.account}">ACCOUNT</td>
        <td th:text="${item.realName}">REALNAME</td>
        <td th:text="${item.birthday}">BIRTHDAY</td>
        <td>
            <a th:href="@{/users/del(id=${item.id})}">删除</a>
            <a th:href="@{/users/update(id=${item.id})}">修改</a>
        </td>
    </tr>
</table>
</body>
</html>